package com.tensquare.recruit.service;

import com.tensquare.recruit.dao.EnterpriseDao;
import com.tensquare.recruit.pojo.Enterprise;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * & ProjectName：  tensquare-parent
 * & PackageName:   com.tensquare.recruit.service
 * & Creation_Date： 2020/3/31 00:04
 * & Author：しの
 * ----------------------------------
 * & Description:
 */
@Service
public class EnterpriseService {
    @Autowired
    private EnterpriseDao enterpriseDao;
    //1 条件查询热门企业
    public List<Enterprise> searchHotlist() {
        return enterpriseDao.findByIshot("1");
    }
}
